package org.example.new_hbps_backend_reconstruction.entity;

/**
 * @author 丁利军
 * @date 2025年10月15日 14:05
 * @description
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("blood_oxygen_logs")
public class BloodOxygenLogsEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long patientUid;
    // 患者UID
    private Integer spo2;
    // 血氧(0-100)
    private LocalDateTime uploadTime;
    // 测量时间(从回调timestamp转换)
    private LocalDateTime createdAt;
    // 可让DB默认CURRENT_TIMESTAMP
}

